package user

import (
	"github.com/gin-gonic/gin"
	"shejiao/base"
	common2 "shejiao/common/model/common"
	common3 "shejiao/pkg/common"
)

var Goods = goods{}

type goods struct{}

// @summary 获取钻石充值列表接口
// @tags 公共
// @Description 根据用户ID获取用户信息
// @Accept json
// @Produce json
// @Param token header string true "认证token"
// @Router /api/user/common/goods [post]
func (g *goods) List(c *gin.Context) {
	var list []common2.Goods
	base.Mysql.Find(&list)
	common3.Response.Success(c, gin.H{"list": list})
}
